﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ListDepartment.ascx.cs"
    Inherits="ServicesDirectory.UserControl.ListDepartment" %>
<link href="../Resources/Css/style-department.css" rel="stylesheet" type="text/css" />
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <div class="ManagerContentBorder">
            <div class="bgManager">
                <div class="sortList">
                    <span>
                        <asp:LinkButton runat="server" ID="All" Text="All"></asp:LinkButton>
                    </span>| <span>
                        <asp:LinkButton runat="server" ID="lbt09" Text="0 - 9"></asp:LinkButton>
                    </span>| <span>
                        <asp:LinkButton runat="server" ID="lbtA" Text="A B C D E"></asp:LinkButton>
                    </span>| <span>
                        <asp:LinkButton runat="server" ID="lbtF" Text="F G H I J"></asp:LinkButton>
                    </span>| <span>
                        <asp:LinkButton runat="server" ID="lbtK" Text="K L M N"></asp:LinkButton>
                    </span>| <span>
                        <asp:LinkButton runat="server" ID="lbtO" Text="O P Q R"></asp:LinkButton>
                    </span>| <span>
                        <asp:LinkButton runat="server" ID="lbtS" Text="S T U V"></asp:LinkButton>
                    </span>| <span>
                        <asp:LinkButton runat="server" ID="lbtW" Text="W X Y Z"></asp:LinkButton>
                    </span>
                </div>
                <div style="width: 28%; height: 25px; float: right; padding-top: 5px">
                    <asp:Button ID="BtnCreate" runat="server" Text="Create" OnClick="BtnCreate_Click" />
                    <asp:CheckBox runat="server" ID="chkInactive" Text=" Include In-Active" AutoPostBack="true" />
                </div>
                <div class="spaceManager">
                </div>
                <div class="contentGrid">
                    <div class="hearderGrid">
                        <div class="DepartmentHeaderCol1">
                            <asp:LinkButton runat="server" ID="LbtName" Text="Department Name"></asp:LinkButton>
                        </div>
                        <div class="DepartmentHeaderCol2">
                            Address Line 1</div>
                        <div class="DepartmentHeaderCol3">
                            Postcode</div>
                        <div class="DepartmentHeaderCol4">
                            Contact</div>
                        <div class="DepartmentHeaderCol5">
                            Is Active?</div>
                    </div>
                    <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand"
                        OnItemDataBound="Repeater1_ItemDataBound">
                        <ItemTemplate>
                            <div class="rowGrid">
                                <div class="DepartmentContentCol1">
                                    <asp:LinkButton runat="server" ID="LbtName" Text='<%#Eval("Name") %>' CommandName="Edit"
                                        CommandArgument='<%#Eval("DepartmentId") %>'></asp:LinkButton></div>
                                <div class="DepartmentContentCol2">
                                    <%#Eval("AddressLine1") %>
                                </div>
                                <div class="DepartmentContentCol3">
                                    <%#Eval("PostCode") %>
                                </div>
                                <div class="DepartmentContentCol4">
                                    <%#Eval("LeadContact") %>
                                </div>
                                <div class="DepartmentContentCol5">
                                    <asp:Label ID="lblIsactive" runat="server" Text='<%#Eval("IsActive") %>'></asp:Label>
                                </div>
                            </div>
                        </ItemTemplate>
                        <AlternatingItemTemplate>
                            <div class="alterRowGrid">
                                <div class="DepartmentContentCol1">
                                    <asp:LinkButton runat="server" ID="LbtName" Text='<%#Eval("Name") %>' CommandName="Edit"
                                        CommandArgument='<%#Eval("DepartmentId") %>'></asp:LinkButton></div>
                                <div class="DepartmentContentCol2">
                                    <%#Eval("AddressLine1") %>
                                </div>
                                <div class="DepartmentContentCol3">
                                    <%#Eval("PostCode") %>
                                </div>
                                <div class="DepartmentContentCol4">
                                    <%#Eval("LeadContact") %>
                                </div>
                                <div class="DepartmentContentCol5">
                                    <asp:Label ID="lblIsactive" runat="server" Text='<%#Eval("IsActive") %>'></asp:Label>
                                </div>
                            </div>
                        </AlternatingItemTemplate>
                    </asp:Repeater>
                    <div class="PagingList">
                        <span>
                            <asp:Button runat="server" CssClass="backAllList" ID="cmdFisrt" OnClick="CmdFisrt_Click1" />
                        </span><span>
                            <asp:Button runat="server" CssClass="backList" ID="cmdBack" OnClick="CmdBack_Click1" /></span>
                        <span style="padding-left: 5px;">Page</span> <span style="padding-left: 5px;">
                            <asp:TextBox Text="1" runat="server" Width="20px" ID="txtPageNumber"></asp:TextBox></span>
                        <span>of</span> <span>
                            <asp:Label runat="server" Text="1" ID="lblTotalPage"></asp:Label></span> <span>
                                <asp:Button runat="server" CssClass="nextAll" ID="cmdLast" OnClick="CmdLast_Click1" />
                            </span><span>
                                <asp:Button runat="server" CssClass="nextList" ID="cmdNext" OnClick="CmdNext_Click1" />
                            </span>
                    </div>
                </div>
                <div class="spaceManager">
                </div>
            </div>
        </div>
    </ContentTemplate>
</asp:UpdatePanel>
